﻿@page "/clock"
@inherits MvvmComponentBase<ClockViewModel>

<MatCard>
    <MatCardContent>
        <MatSubtitle1>
            Having values updating in the background is no hassle. No need to manually invoke
            <pre style="display: inline">StateHasChanged()</pre> on the component inside it's synchronization context.
            That's done for you! Just make sure to update your values using the <pre style="display: inline">Set</pre> method in your view model.
        </MatSubtitle1>
    </MatCardContent>
</MatCard>
<br/>

<MatBody2>
    This component demonstrates updating from a background task without user interaction.
</MatBody2>
<br/>
<MatBody2>
    Current time: @Bind(x => x.DateTime)
</MatBody2>